package lpl.com.xyd.test.manage;

import com.alibaba.fastjson.JSONObject;
import lpl.com.xyd.test.manage.common.utils.excel.ExcelUtils;
import org.springframework.stereotype.Component;

import java.io.IOException;
import java.util.List;
import java.util.Map;

@Component
public class ExcelMain {

    public boolean excute() {
        try {
            Map<String, List<JSONObject>> map = ExcelUtils.readfile("C:\\Users\\andy\\Desktop\\Excel");
            ExcelUtils.testWrit("D:\\code",map);
            return true;
        } catch (IOException e) {
            e.printStackTrace();
        }catch (Exception e) {
            e.printStackTrace();
        }
        return false;
    }
}
